package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperOrderSellDetail implements Serializable {
    /**
     * 销售订单ID
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer gid;

    /**
     * 销售单价
     */
    private Double price;

    /**
     * 销售数量
     */
    private Integer num;

    /**
     * 销售总价
     */
    private Double tprice;

    /**
     * 提货仓库--（作废）联查出库单
     */
    private Integer bStoreId;

    private static final long serialVersionUID = 1L;

    /**
     * 销售订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 销售订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 商品ID
     */
    public Integer getGid() {
        return gid;
    }

    /**
     * 商品ID
     */
    public void setGid(Integer gid) {
        this.gid = gid;
    }

    /**
     * 销售单价
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 销售单价
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 销售数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 销售数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 销售总价
     */
    public Double getTprice() {
        return tprice;
    }

    /**
     * 销售总价
     */
    public void setTprice(Double tprice) {
        this.tprice = tprice;
    }

    /**
     * 提货仓库--（作废）联查出库单
     */
    public Integer getbStoreId() {
        return bStoreId;
    }

    /**
     * 提货仓库--（作废）联查出库单
     */
    public void setbStoreId(Integer bStoreId) {
        this.bStoreId = bStoreId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", gid=").append(gid);
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append(", tprice=").append(tprice);
        sb.append(", bStoreId=").append(bStoreId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderSellDetail other = (SuperOrderSellDetail) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getTprice() == null ? other.getTprice() == null : this.getTprice().equals(other.getTprice()))
            && (this.getbStoreId() == null ? other.getbStoreId() == null : this.getbStoreId().equals(other.getbStoreId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getGid() == null) ? 0 : getGid().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getTprice() == null) ? 0 : getTprice().hashCode());
        result = prime * result + ((getbStoreId() == null) ? 0 : getbStoreId().hashCode());
        return result;
    }
}